/*
package com.azxc.rapid.plus.resource.config;

import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
@Data
public class XxlJobConfig {
	private final Logger logger = LoggerFactory.getLogger(XxlJobConfig.class);

	@Value("${corePlus.job.admin.addresses}")
	private String adminAddresses;

	@Value("${corePlus.job.executor.appname}")
	private String appName;

	@Value("${corePlus.job.executor.ip}")
	private String ip;

	@Value("${corePlus.job.executor.port}")
	private int port;

	@Value("${corePlus.job.accessToken}")
	private String accessToken;

	@Value("${corePlus.job.executor.logpath}")
	private String logPath;

	@Value("${corePlus.job.executor.logretentiondays}")
	private int logRetentionDays;


	@Bean
	public XxlJobSpringExecutor xxlJobExecutor() {
		logger.info(">>>>>>>>>>> xxl-job config init.");
		XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
		xxlJobSpringExecutor.setAdminAddresses(adminAddresses);
		xxlJobSpringExecutor.setAppName(appName);
		xxlJobSpringExecutor.setIp(ip);
		xxlJobSpringExecutor.setPort(port);
		xxlJobSpringExecutor.setAccessToken(accessToken);
		xxlJobSpringExecutor.setLogPath(logPath);
		xxlJobSpringExecutor.setLogRetentionDays(logRetentionDays);
		return xxlJobSpringExecutor;
	}

}
*/
